package com.leoman.service;

import com.leoman.entity.Banner;
import com.leoman.service.common.ICommonService;
import org.springframework.data.domain.Page;
import org.springframework.web.multipart.MultipartRequest;

import java.util.List;

/**
 * BannerService
 * Created by 涂奕恒 on 2016/10/18 0018 下午 3:10.
 */
public interface BannerService extends ICommonService<Banner> {

    // 查询广告列表
    List<Banner> iFindList();

    // 编辑广告信息
    Integer saveBanner(Integer bannerId, Integer type, Integer position, String linkUrl, MultipartRequest multipartRequest);

    // 广告列表（分页）
    Page<Banner> pageByParams(Integer typeId, Integer position, Integer pageNum, Integer pageSize);
}